package com.hbnu.pojo;

import java.util.HashSet;
import java.util.Set;

public class Classes {
    private Integer cid;
    private String cname;
//    private Teacher teacher;

//    一对多
//    Set<Student> students = new HashSet<>();

//    多对多
    Set<Teacher> teachers = new HashSet<>();


    @Override
    public String toString() {
        return "Classes{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", teachers=" + teachers +
                '}';
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Set<Teacher> getTeachers() {
        return teachers;
    }

    public void setTeachers(Set<Teacher> teachers) {
        this.teachers = teachers;
    }


//    public Set<Student> getStudents() {
//        return students;
//    }
//
//    public void setStudents(Set<Student> students) {
//        this.students = students;
//    }

    //    public void setCname(String cname) {
//        this.cname = cname;
//    }
//
//    public Teacher getTeacher() {
//        return teacher;
//    }
//
//    public void setTeacher(Teacher teacher) {
//        this.teacher = teacher;
//    }
}
